<?php
$items = $block->getItems();
?>
<div class="box">
	<div class="box-title">
		<h3>Rating</h3>
		<?php if($block->isApplied()): ?>
			<a href="<?php echo $block->getClearUrl() ?>" class="ajaxUpdate clear-btn">x</a>
		<?php endif ?>
	</div>
	<div class="box-content">
	<?php if (empty($items)): ?>
		<p>No items to show</p>
	<?php else: ?>
		<?php echo CHtml::checkBoxList('rating', $block->rating, $items, array(
			'separator'=>'', 
			'template'=>'<p>{input} {label}</p>',
			'container'=>'div',
			'class'=>'ajaxUpdate',
		)); ?>
	<?php endif ?>
	</div>
</div>